package com.alinesno.cloud.busines.shop.manage.entity;
import java.util.Date;
import com.alinesno.sdk.generator.table.annotation.ColumnComment;
import com.alinesno.sdk.generator.table.annotation.ColumnType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alinesno.cloud.common.facade.mapper.entity.BaseEntity;

/**
 * 功能名： 商品
 * 数据表：  item
 * 表备注： 商品表
 * @author wangyongkang ${authorEmail}
 * @date 2022-03-17 23:48:40
 */
@TableName("item")
public class ItemEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;
    // fields
    /**
    * 商品名
    */
    @ColumnComment("商品名")
    @Excel(name="商品名")
    @ColumnType(length = 255)
    @TableField("name")
    private String name;
    /**
    * 商品编号
    */
    @ColumnComment("商品编号")
    @Excel(name="商品编号")
    @ColumnType(length = 255)
    @TableField("code")
    private String code;
    /**
    * 库存
    */
    @ColumnComment("库存")
    @Excel(name="库存")
    @ColumnType(length = 20)
    @TableField("stock")
    private Long stock;
    /**
    * 采购时间
    */
    @ColumnComment("采购时间")
    @Excel(name="采购时间",exportFormat = "yyyy-MM-dd")
    @ColumnType(length = 0)
    @TableField("purchase_time")
    private Date purchaseTime;
    /**
    * 是否有效（1=是；0=否）
    */
    @ColumnComment("是否有效（1=是；0=否）")
    @Excel(name="是否有效（1=是；0=否）")
    @ColumnType(length = 11)
    @TableField("is_active")
    private Integer isActive;
    /**
    * 添加时间
    */
    @ColumnComment("添加时间")
    @Excel(name="添加时间",exportFormat = "yyyy-MM-dd")
    @ColumnType(length = 0)
    @TableField("create_time")
    private Date createTime;
    //getter and setter
    public String getName(){
        return this.name;
    }
    public ItemEntity setName(String arg){
        this.name = arg;
        return this;
    }
    public String getCode(){
        return this.code;
    }
    public ItemEntity setCode(String arg){
        this.code = arg;
        return this;
    }
    public Long getStock(){
        return this.stock;
    }
    public ItemEntity setStock(Long arg){
        this.stock = arg;
        return this;
    }
    public Date getPurchaseTime(){
        return this.purchaseTime;
    }
    public ItemEntity setPurchaseTime(Date arg){
        this.purchaseTime = arg;
        return this;
    }

    public Integer getIsActive() {
        return isActive;
    }

    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    public Date getCreateTime(){
        return this.createTime;
    }
    public ItemEntity setCreateTime(Date arg){
        this.createTime = arg;
        return this;
    }
}
